import 'package:bruno/bruno.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';
import 'package:get/get.dart';

import 'cancel_account.dart';

class CancelAccountApplicationPage extends StatelessWidget {
  const CancelAccountApplicationPage({super.key});

  @override
  Widget build(BuildContext context) {
    return Scaffold(
      appBar: BrnAppBar(title: '注销账号'),
      backgroundColor: Colors.white,
      body: const Padding(
        padding: EdgeInsets.all(15),
        child: SingleChildScrollView(
          child: Text('账户下的全部权益和资产均已结清、清空、或自愿放弃;账号内所有交易已完成或已自愿放弃。'),
        ),
      ),
      bottomNavigationBar: SizedBox(
        height: 100,
        child: Padding(
          padding: EdgeInsets.only(left: 20.w, right: 20.w, bottom: Get.bottomBarHeight + 20),
          child: Column(
            children: [
              BrnBigMainButton(
                title: "申请注销".tr,
                width: double.infinity - 32 * 2,
                bgColor: const Color(0xFF25D4D0),
                bgDisEnableColor: const Color(0xFF25D4D0).withOpacity(0.6),
                themeData: BrnButtonConfig(bigButtonRadius: 255, bigButtonHeight: 45.h, bigButtonFontSize: 16.sp),
                isEnable: true,
                onTap: () {
                  Get.to(const CancelAccountPage());
                },
              ),
              const SizedBox(height: 10),
              Text(
                '申请注销即代表阅读并同意本页提示内容',
                style: TextStyle(color: const Color(0xFF999999), fontSize: 13.sp),
              )
            ],
          ),
        ),
      ),
    );
  }
}
